/*
* @Author: zyp
* @Date:   2017-08-29 14:57:06
* @Last Modified by:   zyp
* @Last Modified time: 2017-08-29 15:35:58
*/
import axios from 'axios'


export function sendLogin(loginfrom) {
  const url = 'http://easy-mock.com/mock/59775208a1d30433d83d619c/example/user/login.do'
  return axios.post(url,loginfrom).then((res) => {
    return Promise.resolve(res.data)
  })
}
//商品详情接口
/*export function getRegist(detailId) {
  const url = 'http://easy-mock.com/mock/59775208a1d30433d83d619c/example/dpi/getail'
  return axios.get(url, {
    detail:detailId
  }).then((res) => {
    return Promise.resolve(res.data)
  })
}*/